package dicebot.tools.dice;

public class Number extends DiceExpression {
    
    public int value;

    public Number (int value) {
        this.value = value;
    }

    @Override
    public DiceExpression simplify() {
        return this;
    }

    @Override
    public String toString() {
        return value + "";
    }

    @Override
    public String toStringWithSign() {
        if (value >= 0) {
            return "+" + value;
        } else {
            return toString();
        }
    }
}
